module.exports = {
  presets: [
    '@vue/cli-plugin-babel/preset'
  ],
  // 实现vant组件打包时按需加载,打包后的js文件就会小
  plugins: [
    ['import', {
      libraryName: 'vant',
      libraryDirectory: 'es',
      style: true
    }, 'vant'],
    // 按需打包
    ['import', { libraryName: 'lodash', libraryDirectory: '' }, 'lodash']
  ]
}
